package com.whu.helpluojia.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whu.helpluojia.domain.Bagman;
import com.baomidou.mybatisplus.extension.service.IService;
import com.whu.helpluojia.domain.MyPublish;
import com.whu.helpluojia.domain.Supply;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author 92948
 * @description 针对表【bagman】的数据库操作Service
 */
public interface BagManService extends IService<Bagman> {


    public void addBagman(Bagman bagman);

    public Bagman queryBagmanById(Long id);

    public Bagman[] selectAll();

    public List<Bagman> getByDate(Date dateTime);
    public List<Bagman> getByUser(Long userId);
    public List<Bagman> getByType(String type);

    public List<Bagman> getByDescription(String description);

    public List<Bagman> getByDestination(double Lat, double Lon,int length);


    public List<MyPublish> getMyDetail(Long userId);

    public MyPublish getBagmanDetail(Long id,Long userId);
    public int deleteBagman(Long id);

    void solute(Long id);
}
